import request from '@/utils/request'

// 查询持有风险债券信息列表
export function listFundRiskBond(query) {
  return request({
    url: '/operation/fundRiskBond/list',
    method: 'get',
    params: query
  })
}

// 查询持有风险债券信息详细
export function getFundRiskBond(id) {
  return request({
    url: '/operation/fundRiskBond/' + id,
    method: 'get'
  })
}

// 保存持有风险债券信息
export function saveFundRiskBond(data) {
  return request({
    url: '/operation/fundRiskBond/save',
    method: 'post',
    data: data
  })
}

// 删除持有风险债券信息
export function delFundRiskBond(id) {
  return request({
    url: '/operation/fundRiskBond/' + id,
    method: 'delete'
  })
}

// 导出持有风险债券信息
export function exportFundRiskBond(query) {
  return request({
    url: '/operation/fundRiskBond/export',
    method: 'get',
    params: query
  })
}
